package com.yc.cloud.admin.dto.request;

import com.yc.cloud.api.enums.AnswerShowTypeEnums;
import com.yc.cloud.basic.enums.EnumValue;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 答题库
 *
 * @author Yancy
 * @since 2024-01-31
 */
@Data
public class AnswerCreateParam {


    @ApiModelProperty(value = "问题编号", required = true)
    @NotEmpty
    private String questionNo;


    @ApiModelProperty(value = "排序", required = true)
    @NotNull
    @Min(1)
    private Integer step;

    @ApiModelProperty(value = "展示形式,0->文本,1->图片,2->视频 3->模型,4->音频", required = true)
    @EnumValue(enumClass = AnswerShowTypeEnums.class, message = "不合法")
    private String showType;

    @ApiModelProperty(value = "回答内容", required = true)
    @NotEmpty
    private String content;

    @ApiModelProperty(value = "人物回答问题动画名称,", example = "take001")
    private String animationName;


}
